home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Always 25
/
Always_25_1995-09_Elysium_Sunga_pl_Side_A.d64
/
gaypack xxv .run
/
ARC AID 5.1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
4KB
|
136 lines
0 rem: mods by e. goldberg : 02nov86 *** use arc 2.21 or higher ***
1 poke650,0:poke808,239:gosub131
3 ifgl=9230then232
12 poke53281,0:poke53280,0:print"[147]";
15 ifpeek(49152)+peek(49153)<>206thenprint"[147] [193][210][195] 2.21 must be loaded and run [198][201][210][211][212]! ":goto15
20 print"[147] [193][210][195] [193][201][196] 5.1 "
21 gosub184
22 print" [195]reated [194]y:"
24 print" [158][197][146]xtract from an [193][210][195] file.
25 [153]" syslenwaitreate an atn(NULL)len file.
26 print" [158][193][146]ppend to an existing [193][210][195] file.
27 [153]" sysascwaitile (NULL)anagement (NULL)enu":[153]" sysstr$waitevice # change.
28 print" e[158][216][146]it [193][210][195] [193][201][196]."
29 geta$:ifa$=""thengosub139:gosub191:goto29
30 ifa$<>"e"anda$<>"c"anda$<>"a"thenva=1
31 ifa$<>"f"anda$<>"x"anda$<>"d"andva=1thenva=0:goto29
32 if a$="c"thengosub800:print"[147]";spc(15);"[204]oading...[144]":load"arcaid1",8
33 ifa$="a"thengosub800:print"[147]";spc(15);"[204]oading...[144]":load"arcaid3",8
34 ifa$="x"then196
35 ifa$="f"then206
36 ifa$<>"d"thengosub800:print"[147]";spc(15);"[204]oading...[144]":load"arcaid2",8
40 print"[147] [212][213][210][206] [207][198][198] [193][204][204] [196][210][201][214][197][211], [197][216][195][197][208][212] [212][200][197] [207][206][197] [217][207][213] [215][193][206][212] [212][207] [195][200][193][206][199][197]."
45 input"[195]urrent device number 8[157][157][157]";cd:input"[206]ew device number 9[157][157][157]";nd
50 open1,cd,15:print#1,"m-w"chr$(119)chr$(0)chr$(2)chr$(nd+32)chr$(nd+64):close1
55 run
120 end
131 rem:scrolling msg
132 a$=" [207]riginally written by [196]an [204]evine, with extensive "
133 b$="improvements by [197]arl [199]oldberg of the "
134 c$="[195][213][199][203][195] 02-[206]ov-86. [208]lease send any questions, comments or"
135 d$=" suggestions to me at [195]ommodore [195]entral (913-621-1801) "
136 e$=" "
137 ms$=e$+a$+b$+c$+d$
138 return
139 print"[158]";
140 x=x+1:ifx=256thenx=1
141 printmid$(ms$,x,40);"[146]";:fordy=1to 10:next
142 return
143 rem: append to an arc file
184 rem by-line
185 bl$(1)="[158][196][154]an [204]evin[158]e"
186 bl$(2)="[196][158]a[154]n [204]evi[158]ne"
187 bl$(3)="[196]a[158]n[154] [204]ev[158]ine"
188 bl$(4)="[196]an[158] [154][204]e[158]vine"
189 bl$(5)="[196]an [158][204][154][158]evine"
190 di=1:return
191 b=b+di
192 ifb=6thenb=5:di=-1
193 ifb=0thendi=1
194 print" ";bl$(b):return
195 poke631,13:poke632,71:poke633,207:poke635,13:poke636,13:poke198,5:goto120
196 print"[147] [196]o you want to:"
197 print" [158][210][146]eturn to [193][210][195] [193][201][196],"
198 print" [158][197][146]xit to [193][210][195], or"
199 print" [158][199][146]o to [194][193][211][201][195]"
200 geta$:ifa$=""then200
201 ifa$="r"thenrun
202 ifa$="e"thenpoke808,237:print"[147]arc":poke631,13:poke198,1:new
203 ifa$="g"thensys64738
205 goto200
206 rem: file management
207 print"[147] [212]his section only uses drive 8,0 [146]"
208 print" [198]ile [205]anagement"
209 print" [158]$[146] for a directory."
210 print" [158][198][146]ormat a disk."
211 print" [158][214][146]alidate a disk."
212 print" [158][211][146]cratch files."
213 print" [158][210][146]ename a file."
214 print" [158][204][146]oad address of file.":print" [158][196][146]isplay [211][197][209] file.
215 [153]" syslenwaitontents of an atn(NULL)len file."
216 [153]" sysatnwaitbort to (NULL)ain (NULL)enu"
217 [161]a$:[139]a$[179][177]""[167]223
218 tg[178]1[171]tg
219 [139]tg[178]0[167][153]"sys";
220 [139]tg[178]1[167][153]"";
221 [153]" (NULL)his section only uses drive 8,0 wait":[129]d[178]1[164]40:[130]
222 [137]217
223 [139]a$[179][177]"f"[167]228
224 [153]"loadascormat a diskwait"
225 [133]"str$isk (NULL)ame,right$str$";dn$,id$:co$[178]"asc(NULL)(NULL)(NULL)atn(NULL)":[141]600:[139]yn[167][138]
226 [153]"load ascormatting in progress...":[159]15,8,15,"n0:"[170]dn$[170]","[170]id$
227 [160]15:[137]229
228 [151]808,239:[139]a$[179][177]"$"[167]235
229 [153]"load (NULL)left$right$asc(NULL) pauses, (NULL)(NULL)(NULL)/(NULL)(NULL)(NULL)(NULL) aborts"
230 [153]"dir":[153]"":gl[178]9230
231 [137]195
232 [153]" (NULL)ress any key to return to menu.wait":[151] 198,0:gl[178]0
233 [161]a$:[139]a$[178]""[167]233
234 [137]206
235 [139]a$[179][177]"v"[167]239
236 [153]"load":co$[178]"(NULL)atn(NULL)right$str$atn(NULL)val":[141]600:[139]yn[167][138]
237 [153]"load (NULL)alidation in progress":[159]15,8,15,"v0":[160]15:[137]229
238 [137]217
239 [139]a$[179][177]"s"[167]244
240 [153]"load(NULL)cratch files."
241 [133]"ascilename (or pattern)";f$:[139]f$[178]""[167][138]
242 [159] 15,8,15,"s0:"[170]f$
243 f$[178]"":[160]15:[137]229
244 [139]a$[179][177]"r"[167]250
245 [153]"load(NULL)ename ascile."
246 [133]"lenurrent filename";f$:[139]f$[178]""[167][138]
247 [133]"(NULL)ew filename";n$:[139]n$[178]""[167][138]
248 [159]15,8,15,"r0:"[170]n$[170]"="[170]f$
249 f$[178]"":n$[178]"":[160]15:[137]229
250 [139]a$[179][177]"l"[167]255
251 [153]"load(NULL)oad address of a file."
252 [133]"ascile name";f$:[141]500
253 [153]"loadstart a:";f$:gl[178]9230:[153]""
254 [137]195
255 [139]a$[179][177]"c"[167]260
256 [153]"loadlenontents of an atn(NULL)len file."
257 [133]"atn(NULL)len filename";f$:[141]500
258 [153]"loadarc/l a:"f$:[153]"":gl[178]9230
259 [137]195
260 [139]a$[178]"d"[167]700
261 [139]a$[178]"a"[167][138]
262 [137]217
500 te$[178]"":[129]i[178]1[164][195](f$):[139]f$[178]""[167][138]
501 [139][202](f$,i,1)[178]" "[167]te$[178]te$[170][199](160):[137]503
502 te$[178]te$[170][202](f$,i,1)
503 [130]
505 f$[178]te$:[142]
600 [153]" right$(NULL)(NULL)val(NULL)(NULL) str$right$(NULL)(NULL) (NULL)(NULL) "co$
602 [153]" (NULL)(NULL)val(NULL)(NULL) (NULL) wait (NULL)(NULL) (NULL)(NULL)(NULL)lenvalvalstr$, (NULL)(NULL)"
604 [153]" atn(NULL)(NULL) (NULL)(NULL)left$val(NULL)close(NULL)val(NULL) (NULL)(NULL) atnpeek(NULL)(NULL)(NULL).":[151]198,0
606 [161]a$:[139]a$[178]""[167]606
608 [139]a$[178]"p"[167]yn[178]0:[142]
610 yn[178]1:[142]
700 [153]"loadstr$isplay (NULL)val(NULL) file."
702 [133]"(NULL)val(NULL) filename";f$:[141]500
703 [153]"load (NULL)left$right$asc(NULL) pauses, (NULL)(NULL)(NULL)/(NULL)(NULL)(NULL)(NULL) aborts"
704 [153]"type "f$:[153]"":gl[178]9230:[137]195
800 [153]"load right$(NULL)(NULL)val(NULL)(NULL) str$right$(NULL)(NULL) with atn(NULL)len atnright$str$ in drive 8,0 and press (NULL)val(NULL)(NULL)(NULL)(NULL)"
802 [161]a$:[139]a$[179][177][199](13)[167]802
804 [142]